import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsBiology {
  biologyDegrade: string;
  msdsEntprId?: number;
  id?: number;
  migration: string;
  poison: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsBiologyHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsBiology 信息*/
  public addMsdsBiology(param: MsdsBiology): Observable<number> {
    return this.http.post('/msdsBiology', param, {needSuccessInfo: true});
  }

  /*修改msdsBiology信息*/
  public editMsdsBiology(param: MsdsBiology): Observable<void> {
    return this.http.put('/msdsBiology', param, {needSuccessInfo: true});
  }

  /*查询msdsBiology详情*/
  public getMsdsBiologyDetail(msdsEntprId: number): Observable<MsdsBiology> {
    return this.http.get('/msdsBiology/' + msdsEntprId);
  }

}
